Release 10.1A: OpenEdge Development:
Programming Interfaces
Handling errors
The
WRITE-STATUSattribute is your view into the error status of a SAX-writer object. The value of the attribute is interpreted differently depending upon the value of theSTRICTattribute. WhenSTRICTis set toTRUE, any method call that would result in invalid XML sets theWRITE-STATUSattribute toSAX-WRITE-ERROR. WhenSTRICTisFALSE, only errors that prevent the write from starting or raise exceptions set theWRITE-STATUSattribute toSAX-WRITE-ERROR. Essentially,STRICT = TRUEis more sensitive and useful for development and troubleshooting mode.STRICT = FALSEwill only stop a document from being written if the error prevents the write from starting or continuing and may be a better choice for production mode.If the SAX-writer does have a status of
SAX-WRITE-ERROR, only the methods which reinitialize the object can be called:SET-OUTPUT-DESTINATIONandRESET. The object attributes will still be readable and writable.
|
Copyright © 2005 Progress Software Corporation www.progress.com Voice: (781) 280-4000 Fax: (781) 280-4095 |